<!--请款结果"-->
<template>
  <div>
    <el-form :model="checkForm" label-width="100px" class="demo-ruleForm" ref="checkForm">
      <el-form-item label="放款时间" prop="loanTime"
       >
        <el-input disabled v-model="checkForm.loanTime" style="width: 300px"/>
      </el-form-item>
      <el-form-item label="放款金额" prop="loanAmount" >
        <el-input type="text" :rows="7" v-model="checkForm.loanAmount" style="width: 300px" disabled></el-input>
        <span style="color:red">(万)</span>
      </el-form-item>

      <el-form-item label="借款期限" prop="loanTerm" disabled>
        <el-input type="text" :rows="7" v-model="checkForm.loanTerm" style="width: 300px" disabled></el-input>
        <!-- <DicSelect dictType = "申请期限" :dictValue="checkForm.loanTerm" v-on:dictValue="checkForm.loanTerm=$event" style="width: 100px" disabled/> -->
      </el-form-item>


      <el-form-item label="还款方式" prop="repayMethod">
        <el-input type="text" :rows="7" v-model="checkForm.repayMethodName" style="width: 300px" disabled></el-input>
      </el-form-item>
      <el-form-item label="还款金额" prop="loanMoney">
        <el-input type="text" :rows="7" v-model="checkForm.loanMoney" style="width: 300px" disabled></el-input>
        <span style="color:red">(万)</span>
      </el-form-item>

    </el-form>
  </div>
</template>
<script>
import { findByProjectId } from '@/api/project';
import DicSelect from '@/components/select/index';
export default {
  components: { DicSelect },
  data() {
    return {
      projectId: undefined,
      checkForm: {
        loanAmount: undefined,
        loanTerm: undefined,
        loanMoney: undefined,
        repayMethod: undefined,
        loanTime:undefined
        
      },
    };
  },
  created: function () {
    this.projectId = this.$route.query.projectId
    this.findByProjectId(this.projectId);
  },
  methods: {
    findByProjectId(){
      findByProjectId(this.projectId).then((data) => {
        this.checkForm=data.data
        console.log('响应数据:%o', data);
      });
    },
  },
};
</script>
